<?php
    
    session_start();
    
    if(isset($_POST["name"])){
	if (
	    ($_POST["name"]=='root' &&
	    md5($_POST["password"])=='63a9f0ea7bb98050796b649e85481845') 
	    ||
	    ($_POST["name"]=='stat' &&
	    md5($_POST["password"])=='77ddcb5f19832f4145345889013ab3a4') 
	) {
	    $_SESSION["logged"] = $_POST["name"];
	    header("Location: projects.php");
	}
    }
    
?>

<?php
    include_once("menu.php");
?>

<h2>Login request</h2>
<form method="post" enctype="multipart/form-data">

Login : <input type="text" name="name"><br />
Password : <input type="password" name="password"><br />

<input type="submit" value="submit" name="submit"><br />

</form>

